# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=webalizer
pkgver=2.23.08
_pkgver="2.23-08"
pkgrel=4
pkgdesc="A web server log file analysis program producing HTML reports"
url="http://www.webalizer.org/"
arch="all"
license="GPL"
depends=""
makedepends="db-dev gd-dev libpng-dev zlib-dev bzip2-dev"
install=""
subpackages=""
source="$pkgname-$pkgver.tar.bz2::ftp://ftp.mrunix.net/pub/webalizer/$pkgname-$_pkgver-src.tar.bz2"
_builddir="$srcdir"/$pkgname-$_pkgver
build() {
	cd "$_builddir"
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--datarootdir=/usr/share \
		--enable-bz2
	  make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="${pkgdir}" install || return 1
}

sha512sums="23fe6e3ef1c85aa527ffafef16c31c13ad8e1f9feb774557c07a5c8fd6c67986b98180ef16d6cebe62d59c5f7ca214b8292e94ce8f195fa0541de9c5438fb9bd  webalizer-2.23.08.tar.bz2"
